package com.lbg.drug.controller;


import com.lbg.drug.commont.untils.PageUtils;
import com.lbg.drug.commont.untils.R;
import com.lbg.drug.dto.StaPage;
import com.lbg.drug.service.StatisticService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  统计信息表
 * </p>
 *
 * @author lbg
 * @since  2022-04-26
 */
@Api(value="统计信息表",tags={"统计信息表"})
@RestController
@RequestMapping("/statistic")
public class StatisticController {

    @Autowired
    private StatisticService service;


    /**
     * 统计功能
     * @param staPage
     * @return
     */
    @PostMapping("/getalls")
    public R getalls(@RequestBody StaPage staPage){
        PageUtils all = service.getAll(staPage);
        return R.ok().put("all",all);


    }



}

